#include <stdio.h>
#include <conio.h>
int dxung(char *s)
{
    int n,i=0;
    n=strlen(s);
    while(i<=n/2)
    {
        if(s[i]!=s[n-1-i]) return 0;
        i++;
    }
    return 1;

}
main()
{
    FILE *f;
    int i,n;
    char s[100];
    if(!freopen("vd3.inp","r",stdin))
        return 0;
    if(!freopen("vd4.out","w",stdout))
        return 0;
    scanf("%d",&n);
    i=0;
    while(i!=n)
    {
        gets(s);
        if(dxung(s)) printf("yes\n");
        else printf("no\n");
        i++;
    }
}
